package com.sample.springbootsample.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @projectName: spring-boot-sample
 * @description:
 * @author: Adam
 * @create: 2019-12-11 17:35
 **/

@Controller
public class HelloController {

    private static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        logger.info("Hello World!");
        return "hello";
    }

}
